(function (n) {

            var o = require("crypto");

            function i(e, t) {
                this.appId = e, this.sessionKey = t;
            }

            i.prototype.decryptData = function (e, t) {
                try {
                    var i = new n(this.sessionKey, "base64");
                    e = new n(e, "base64"), t = new n(t, "base64");
                    var a = o.createDecipheriv("aes-128-cbc", i, t);
                    a.setAutoPadding(!0);
                    var r = a.update(e, "binary", "utf8");
                    r += a.final("utf8"), r = JSON.parse(r);
                } catch (e) {
                    return console.error("Illegal Buffer"), {
                        openGId: cc.sys.now() + ""
                    };
                }
                if (r.watermark.appid !== this.appId) throw new Error("Illegal Buffer");
                return r;
            },  module.exports = i
        }).call(this, e("buffer").Buffer);
